package com.example.exam.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**  
 * @Description: 在用户名和密码的基础上添加验证码的Token和用户类型的Token
 */
public class CaptchaUsernamePasswordToken extends UsernamePasswordToken {
    private static final long serialVersionUID = 4676958151524148623L;
    
    
    private String userKind;
    
    private String noncestr;
    
    public CaptchaUsernamePasswordToken(String noncestr){
    	super();
    	this.noncestr = noncestr;
    }
    
    public CaptchaUsernamePasswordToken(String username, String password, boolean rememberMe, String host, String captcha, String userKind) {
        super(username, password, rememberMe, host);
        this.userKind = userKind;
    }


	public String getUserKind() {
		return userKind;
	}

	public void setUserKind(String userKind) {
		this.userKind = userKind;
	}
	
	public String getNoncestr(){
		return noncestr;
	}
    
	public void setNoncestr(String noncestr){
		this.noncestr = noncestr;
	}
	
}
